﻿<Window x:Class="MDCAdminTool.Controls.SetHostConfigWin"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Set Cache Host Config" Height="300" Width="300" WindowStyle="ToolWindow"  WindowStartupLocation="CenterOwner">
    <Grid>
      <Grid.RowDefinitions>
         <RowDefinition Height="60*" />
         <RowDefinition Height="150*" />
         <RowDefinition Height="52*" />
      </Grid.RowDefinitions>

      <TextBlock TextWrapping="Wrap" >
         Updates the cache host configuration to the values specified in the command parameters Except for H and P,
         all parameters are optional.
      </TextBlock>
       
      <UniformGrid Columns="2" Rows="7" Grid.Row="1" Margin="0,0,40,10">
         
         <TextBlock Text="Host Name:" ToolTip="The name of the cache host."/>
         <TextBox Name="tbHostName" Text="{Binding HostName}"/>

         <TextBlock Text="Cache Port:" ToolTip="The current cache port number of the cache host."/>
         <TextBox Name="tbCachePort" Text="{Binding CachePort}"/>
         
         <TextBlock Text="New Cache Port:" ToolTip="The new cache port number."/>
         <TextBox Name="tbNewCachePort"  />
         
         <TextBlock Text="Cache Size:" ToolTip="The total amount of memory allocated for storing data on the cache host, in units of megabytes (MB)."/>
         <TextBox Name="tbCacheSize" />
         
         <TextBlock Text="HighWM :" ToolTip="The high watermark percentage of memory, when eviction should begin evicting objects that have not yet expired."/>
         <TextBox Name="tbHighWM" />
         
         <TextBlock Text="LowWM:" ToolTip="The low watermark percentage of memory, when eviction should begin evicting expired objects. After reaching HWM, when eviction should stop evicting objects that have not yet expired."/>
         <TextBox Name="tbLowWM" />
         
         <TextBlock Text="Cluster Port:" ToolTip="The cluster port number that is used by the cache host."/>
         <TextBox Name="tbClusterPort" />

         

      </UniformGrid>
       
      <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right">
         <Button Height="23" Width="75" Margin="5" Click="Cancel_Click">Cancel</Button>
         <Button Height="23" Width="75" Margin="5" Click="Apply_Click">Apply</Button>
      </StackPanel>
   </Grid>
</Window>
